<!-- 表单的组件 -->
<template />

<script>
export default {
  components: {
    // eslint-disable-next-line vue/no-unused-components
    GenerateElementItem: () => import('./GenerateElementItem.vue')

  },
  props: ['columns', 'value', 'models', 'remote', 'blanks'],
  data() {
    return {
      tableData: this.value,
      dataModels: this.models
    }
  },
  watch: {
    value(val) {
      this.tableData = val
    },
    tableData(val) {
      this.$emit('input', val)
    },
    dataModels: {
      deep: true,
      handler(val) {
        this.$emit('update:models', val)
      }
    },
    models: {
      deep: true,
      handler(val) {
        this.dataModels = val
      }
    }
  }, created() {
  },
  methods: {

  }
}
</script>

<style lang="scss">
</style>
